<template>
	<view class="box">
		<view class="card fw-bt" v-for="(item,index) of list" :key="index" @click="goQuestion(index)">
			<view class="name hide-line">{{item.title}}</view>
			<view class="img f-w">
				<image src="https://jw.xzsw2021.com/static/user/icon_162@2x.png" mode=""></image>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				 list:[]
			}
		},
		onLoad() {
			this.gettm()
		},
		methods: {
			// 问卷详情
			goQuestion(e){
				uni.navigateTo({
					url:'/pages/client/question/question?origin=manhan'+'&index='+e
				})
			},
			//  获取题目
			gettm() {
				this.$request('questionnaire/list', {
					page: 1,
					is_new:1,
					limit: 200,
					// is_new:1
				}, 'GET').then(res => {
					this.list=res.data
					// this.killlist = res.data.list
				})
			},
			
		}
	}
</script>

<style lang="scss" scoped>
	.box{
		padding: 0 30rpx 30rpx;
		.card{
			padding: 38rpx 0;
			border-bottom: 1rpx solid #eee;
			.name{
				width: 600rpx;
			}
			.img{
				width: 15rpx;
				height: 27rpx;
				image{
					width: 100%;
					height: 100%;
				}
			}
		}
	}
</style>
